package com.enhe.gck.pojo;

import com.alibaba.fastjson.annotation.JSONField;
import com.kuangkie.carbon.record.Updatable;
import com.kuangkie.carbon.record.annotation.Attribute;
import com.kuangkie.carbon.record.annotation.CarbonRecord;
import com.kuangkie.carbon.record.annotation.RecordCode;
import com.kuangkie.carbon.uid.model.UidManager;
import lombok.Data;

// 银行账户
@Data
@CarbonRecord("hwane17478")
public class Bank implements Updatable{
    @JSONField(name="唯一编码")
    @RecordCode
    private Long id = UidManager.getLongUID();

    // 编号
    @JSONField(name="编号")
    @Attribute("hwan17480")
    private String code;

    // 名称
    @JSONField(name="名称")
    @Attribute("hwan17481")
    private String name;

    // 币种
    @JSONField(name="币种")
    @Attribute("hwan17482")
    private String currency;

    @JSONField(name = "删除")
    @Attribute("hwan20272")
    private Boolean isDelete;

    @JSONField(name = "现金账户")
    @Attribute("hwan19888")
    private Boolean isCash;
    @Override
    public String getRecordCode() {
        return this.id==null ? null : this.id.toString();
    }
}